.control-panel {
  width: 270px; /* 从240px增加到270px，为滑块留出足够空间 */
  height: 100%;
  background: #0d1117;
  border-right: 1px solid #30363d;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.panel-header {
  padding: 12px 16px; /* 从20px减少到12px 16px */
  border-bottom: 1px solid #30363d;
  background: #21262d;
}

.panel-header h2 {
  margin: 0;
  color: #f0f6fc;
  font-size: 16px; /* 从18px减少到16px */
  font-weight: 600;
}

.panel-section {
  padding: 12px 16px; /* 从20px减少到12px 16px */
  border-bottom: 1px solid #21262d;
}

.panel-section h3 {
  margin: 0 0 12px 0; /* 从16px减少到12px */
  color: #58a6ff;
  font-size: 13px; /* 从14px减少到13px */
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px; /* 从8px减少到6px */
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 8px; /* 从12px减少到8px */
}

.panel-btn {
  display: flex;
  align-items: center;
  gap: 6px; /* 从8px减少到6px */
  padding: 8px 12px; /* 从12px 16px减少到8px 12px */
  border: 1px solid #30363d;
  border-radius: 4px; /* 从6px减少到4px */
  cursor: pointer;
  font-size: 13px; /* 从14px减少到13px */
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: left;
}

.panel-btn.primary {
  background: #238636;
  color: #f0f6fc;
  border-color: #2ea043;
}

.panel-btn.primary:hover {
  background: #2ea043;
  border-color: #46954a;
  transform: translateY(-1px);
}

.panel-btn.primary:disabled {
  background: #30363d;
  color: #8b949e;
  border-color: #21262d;
  cursor: not-allowed;
  transform: none;
}

.panel-btn.secondary {
  background: #21262d;
  color: #c9d1d9;
  border-color: #30363d;
}

.panel-btn.secondary:hover {
  background: #30363d;
  border-color: #58a6ff;
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 14px; /* 从16px减少到14px */
}

.btn-text {
  flex: 1;
}

.data-info {
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 4px; /* 从6px减少到4px */
  padding: 8px; /* 从12px减少到8px */
  margin-top: 6px; /* 从8px减少到6px */
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px; /* 从8px减少到6px */
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  color: #8b949e;
  font-size: 11px; /* 从12px减少到11px */
}

.info-value {
  color: #c9d1d9;
  font-size: 11px; /* 从12px减少到11px */
  font-weight: 500;
}

.warning-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 4px;
  color: #ff6b6b;
  font-size: 12px;
}

.warning-icon {
  font-size: 14px;
}

.process-results {
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 12px;
}

.process-results h4 {
  margin: 0 0 8px 0;
  color: #58a6ff;
  font-size: 12px;
  font-weight: 600;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 4px;
  font-size: 11px;
}

.result-item.completed {
  border-color: #238636;
  color: #56d364;
}

.result-icon {
  font-size: 12px;
}

.result-name {
  font-weight: 500;
}

.download-btn {
  width: 100%;
  margin-top: 8px;
  background: #6f42c1;
  border-color: #8957e5;
  color: #f0f6fc;
}

.download-btn:hover:not(:disabled) {
  background: #8957e5;
  border-color: #a670f0;
  transform: translateY(-1px);
}

.download-btn:disabled {
  background: #30363d;
  color: #8b949e;
  border-color: #21262d;
  cursor: not-allowed;
  transform: none;
}

.test-export-btn {
  width: 100%;
  background: #0969da;
  border-color: #0860ca;
  color: #f0f6fc;
}

.test-export-btn:hover:not(:disabled) {
  background: #0860ca;
  border-color: #0757ba;
  transform: translateY(-1px);
}

.test-export-btn:disabled {
  background: #30363d;
  color: #8b949e;
  border-color: #21262d;
  cursor: not-allowed;
  transform: none;
}

.shortcut-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shortcut-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 4px;
  font-size: 11px;
}

.shortcut-key {
  background: #30363d;
  color: #f0f6fc;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 10px;
  font-weight: 600;
}

.shortcut-desc {
  color: #8b949e;
}

/* 处理方法控件样式 */
.processing-method-control {
  margin: 16px 0;
  padding: 12px;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 6px;
}

.method-select-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #f0f6fc;
  font-weight: 500;
  font-size: 14px;
}

.method-icon {
  font-size: 16px;
}

.method-select {
  width: 100%;
  padding: 8px 12px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #f0f6fc;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.method-select:hover {
  border-color: #1f6feb;
}

.method-select:focus {
  outline: none;
  border-color: #1f6feb;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.1);
}

.method-select:disabled {
  background: #161b22;
  color: #484f58;
  cursor: not-allowed;
}

.arterial-input-notice {
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.notice-icon {
  color: #ffc107;
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

.notice-text {
  color: #f0f6fc;
  font-size: 13px;
  line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .control-panel {
    width: 100%;
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-right: none;
    border-bottom: 1px solid #30363d;
  }
  
  .panel-section {
    padding: 16px;
  }
  
  .panel-header {
    padding: 16px;
  }
  
  .result-grid {
    grid-template-columns: 1fr;
  }
}

.processing-options {
  margin-bottom: 1rem;
}

.option-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.option-item input[type="checkbox"] {
  margin-right: 0.5rem;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.option-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.option-icon {
  font-size: 1rem;
}

.option-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-left: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.option-item input[type="checkbox"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.option-item:has(input[type="checkbox"]:disabled) {
  opacity: 0.7;
  cursor: not-allowed;
}

/* 显示设置样式 */
.display-options {
  margin-bottom: 1rem;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.colormap-select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--surface-color);
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.colormap-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.2);
}

.colormap-select option {
  background: var(--surface-color);
  color: var(--text-primary);
  padding: 0.5rem;
} 

/* 帧范围控制器样式 */
.frame-range-control {
  margin-top: 16px;
  padding: 12px; /* 从16px减少到12px，节省空间 */
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
}

.frame-range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.frame-range-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #58a6ff;
}

.frame-range-icon {
  font-size: 16px;
}

.frame-range-display {
  font-size: 12px;
  color: #7d8590;
  padding: 4px 8px;
  background: #21262d;
  border-radius: 4px;
  border: 1px solid #30363d;
}

.frame-range-sliders {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 8px; /* 从12px减少到8px */
}

.slider-label {
  font-size: 12px;
  color: #f0f6fc;
  min-width: 50px; /* 从60px减少到50px，给滑块更多空间 */
  text-align: right;
}

.frame-range-slider {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #30363d;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.frame-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #58a6ff;
  cursor: pointer;
  border: 2px solid #0d1117;
}

.frame-range-slider::-webkit-slider-thumb:hover {
  background: #79c0ff;
}

.frame-range-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #58a6ff;
  cursor: pointer;
  border: 2px solid #0d1117;
}

.frame-range-slider::-moz-range-thumb:hover {
  background: #79c0ff;
}

.frame-range-slider:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.frame-range-slider:disabled::-webkit-slider-thumb {
  background: #6e7681;
  cursor: not-allowed;
}

.frame-range-slider:disabled::-moz-range-thumb {
  background: #6e7681;
  cursor: not-allowed;
}

.slider-value {
  font-size: 12px;
  color: #f0f6fc;
  min-width: 30px;
  text-align: center;
  padding: 2px 6px;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 4px;
}

.frame-range-description {
  font-size: 11px;
  color: #7d8590;
  margin-top: 8px;
  text-align: center;
  font-style: italic;
}